package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 客户实体类
 */
@TableName("t_customer")
public class CustomerBean {
    // 客户id
    @TableId(value = "pk_customerId",type = IdType.AUTO)
    private Integer id;
    // 客户名称
    @TableField("c_name")
    private String name;
    // 负责人
    @TableField("c_cadre")
    private String cadre;
    // 负责人电话
    @TableField("c_phone")
    private String phone;
    // 客户地址
    @TableField("c_address")
    private String address;
    // 客户经营范围
    @TableField("c_range")
    private String ranges;
    // 邮箱
    @TableField("c_mailbox")
    private String mailbox;

    public CustomerBean() {
    }

    public CustomerBean(String name, String cadre, String phone, String address, String ranges, String mailbox) {
        this.name = name;
        this.cadre = cadre;
        this.phone = phone;
        this.address = address;
        this.ranges = ranges;
        this.mailbox = mailbox;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCadre() {
        return cadre;
    }

    public void setCadre(String cadre) {
        this.cadre = cadre;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRange() {
        return ranges;
    }

    public void setRange(String ranges) {
        this.ranges = ranges;
    }

    public String getMailbox() {
        return mailbox;
    }

    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    @Override
    public String toString() {
        return "CustomerBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", cadre='" + cadre + '\'' +
                ", phone='" + phone + '\'' +
                ", address='" + address + '\'' +
                ", Range='" + ranges + '\'' +
                ", mailbox='" + mailbox + '\'' +
                "}\n";
    }
}
